home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- import java.util.Iterator;
- import java.util.Map;
- import java.util.NoSuchElementException;
-
- final class SoftCache$EntrySet$1 implements Iterator {
- Iterator hashIterator;
- SoftCache.Entry next;
- // $FF: synthetic field
- final SoftCache.EntrySet this$1;
-
- SoftCache$EntrySet$1(SoftCache.EntrySet var1) {
- this.this$1 = var1;
- this.hashIterator = this.this$1.hashEntries.iterator();
- this.next = null;
- }
-
- public boolean hasNext() {
- while(true) {
- if (this.hashIterator.hasNext()) {
- Map.Entry var1 = (Map.Entry)this.hashIterator.next();
- SoftCache.ValueCell var2 = (SoftCache.ValueCell)var1.getValue();
- Object var3 = null;
- if (var2 != null && (var3 = var2.get()) == null) {
- continue;
- }
-
- this.next = new SoftCache.Entry(this.this$1.this$0, var1, var3);
- return true;
- }
-
- return false;
- }
- }
-
- public Object next() {
- if (this.next == null && !this.hasNext()) {
- throw new NoSuchElementException();
- } else {
- SoftCache.Entry var1 = this.next;
- this.next = null;
- return var1;
- }
- }
-
- public void remove() {
- this.hashIterator.remove();
- }
- }
-